package com.bj58.disconf.web.service.roleres.dao.impl;

import java.util.List;

import com.bj58.disconf.web.common.utils.DBHelper;
import com.bj58.disconf.web.service.roleres.bo.RoleResource;
import com.bj58.disconf.web.service.roleres.dao.RoleResourceDao;
import com.google.inject.Singleton;

/**
 * @author lemon
 * @date 2013-12-20 涓嬪崍6:35:04
 */
@Singleton
public class RoleResourceDaoImpl implements RoleResourceDao {

    public List<RoleResource> findAll() {
        try {
            List<RoleResource> ulist = DBHelper.getInstance().getDao().sql.getListByCustom(RoleResource.class, "*", "", "");
            return ulist;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}